package com.xy.entity;

import java.util.Date;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 产品类
 * 
 * @author 萧曳
 *
 */
public class Product {
	private int productID;
	@NotEmpty(message = "{product.productName.empty}")
	@Length(message = "{product.productName.lenth}", min = 4, max = 50)
	private String productName;
	// 贷款最低利率,不填为0
	private float loanMinRate;
	// 贷款最高利率
	private float loanMaxRate;
	// @NotEmpty(message = "{product.companyID.empty}")
	private int companyID;
	private String companyName;
	private String imgURL;
	// 贷款最小规模,不填为0
	private float loanMinScale;
	// 贷款最大规模
	private float loanMaxScale;
	private int productTypeID;
	private String productTypeName;
	// 贷款周期
	private int loanPeriodID;
	private String loanPeriodWeek;
	// 联系人
	private String linkPersonName;
	// 联系银行
	private String linkBackName;
	@NotEmpty(message = "{product.context.empty}")
	@Length(message = "{product.context.lenth}", min = 1, max = 4000)
	private String context;
	@NotEmpty(message = "{product.contextHtml.empty}")
	@Length(message = "{product.contextHtml.lenth}", min = 1, max = 4000)
	private String contextHtml;
	private Date createrTime;
	private int createrID;

	public int getProductID() {
		return productID;
	}

	public void setProductID(int productID) {
		this.productID = productID;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public float getLoanMinRate() {
		return loanMinRate;
	}

	public void setLoanMinRate(float loanMinRate) {
		this.loanMinRate = loanMinRate;
	}

	public float getLoanMaxRate() {
		return loanMaxRate;
	}

	public void setLoanMaxRate(float loanMaxRate) {
		this.loanMaxRate = loanMaxRate;
	}

	public int getCompanyID() {
		return companyID;
	}

	public void setCompanyID(int companyID) {
		this.companyID = companyID;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public float getLoanMinScale() {
		return loanMinScale;
	}

	public void setLoanMinScale(float loanMinScale) {
		this.loanMinScale = loanMinScale;
	}

	public float getLoanMaxScale() {
		return loanMaxScale;
	}

	public void setLoanMaxScale(float loanMaxScale) {
		this.loanMaxScale = loanMaxScale;
	}

	public int getProductTypeID() {
		return productTypeID;
	}

	public void setProductTypeID(int productTypeID) {
		this.productTypeID = productTypeID;
	}

	public String getProductTypeName() {
		return productTypeName;
	}

	public void setProductTypeName(String productTypeName) {
		this.productTypeName = productTypeName;
	}

	public int getLoanPeriodID() {
		return loanPeriodID;
	}

	public void setLoanPeriodID(int loanPeriodID) {
		this.loanPeriodID = loanPeriodID;
	}

	public String getLoanPeriodWeek() {
		return loanPeriodWeek;
	}

	public void setLoanPeriodWeek(String loanPeriodWeek) {
		this.loanPeriodWeek = loanPeriodWeek;
	}

	public String getLinkPersonName() {
		return linkPersonName;
	}

	public void setLinkPersonName(String linkPersonName) {
		this.linkPersonName = linkPersonName;
	}

	public String getLinkBackName() {
		return linkBackName;
	}

	public void setLinkBackName(String linkBackName) {
		this.linkBackName = linkBackName;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getContextHtml() {
		return contextHtml;
	}

	public void setContextHtml(String contextHtml) {
		this.contextHtml = contextHtml;
	}

	public Date getCreaterTime() {
		return createrTime;
	}

	public void setCreaterTime(Date createrTime) {
		this.createrTime = createrTime;
	}

	public int getCreaterID() {
		return createrID;
	}

	public void setCreaterID(int createrID) {
		this.createrID = createrID;
	}

	public String getImgURL() {
		return imgURL;
	}

	public void setImgURL(String imgURL) {
		this.imgURL = imgURL;
	}

	@Override
	public String toString() {
		return "Product [productID=" + productID + ", productName=" + productName + ", loanMinRate=" + loanMinRate
				+ ", loanMaxRate=" + loanMaxRate + ", companyID=" + companyID + ", companyName=" + companyName
				+ ", imgURL=" + imgURL + ", loanMinScale=" + loanMinScale + ", loanMaxScale=" + loanMaxScale
				+ ", productTypeID=" + productTypeID + ", productTypeName=" + productTypeName + ", loanPeriodID="
				+ loanPeriodID + ", loanPeriodWeek=" + loanPeriodWeek + ", linkPersonName=" + linkPersonName
				+ ", linkBackName=" + linkBackName + ", context=" + context + ", contextHtml=" + contextHtml
				+ ", createrTime=" + createrTime + ", createrID=" + createrID + "]";
	}

	

}
